import Vue from 'vue'
import Vuex from 'vuex'

import screen from './screenShow'


import products from './modules/products'

Vue.use(Vuex)

let store = new Vuex.Store({
    state:{
        val_g:""
    },
    mutations:{
        changeData(state , payload){
            state.val_g = payload
        }
    },
    actions:{
        setData({commit} , payload){
            commit('changeData' , payload)
        }
    },
    modules:{
        products,
        screen
    }
})

export default store